<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/10/31 0031
 * Time: 上午 11:24
 */

namespace app\api\service;

use app\common\service\Service;
use Yansongda\Pay\Pay;
use Yansongda\Pay\Log;
class AliPay extends Service
{
    public function pay($out_trade_no,$total_amount,$subject)
    {
        $order = [
            'out_trade_no' => $out_trade_no,
            'total_amount' => $total_amount,
            'subject' => $subject,
        ];
        $alipay = Pay::alipay(config('alipay.ali_pay'))->web($order);
        return $alipay->send();
    }



}